/*
 * @Author: xiaosihan 
 * @Date: 2024-06-11 15:03:46 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-06-11 20:53:12
 */

//Group
import { Group } from "three";
import MeshBase from "three-base/MeshBase";
import roomFbx from "./2.个人办公室.fbx?url";
// 房间
export default class Room extends Group {
    constructor() {
        super();
    }

    mesh = (() => {
        const mesh = new MeshBase(roomFbx);
        mesh.traverseMesh(mesh => {
            mesh.castShadow = true;
            mesh.receiveShadow = true;
        })
        this.add(mesh);
        return mesh;
    })();

    updateMatrix(): void {
        super.updateMatrix();
    }
}